home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Header Files / Common Includes / BRStdDef.h < prev   
Encoding:
C/C++ Source or Header  |  1993-04-17  |  3.0 KB  |  103 lines  |  [TEXT/MPS ]

  1. #ifndef BRSTDDEF_H
  2. #define BRSTDDEF_H
  3. /*========================================================================================
  4. /      File:            BRStdDef.h
  5. /      Release Version:    $ 1.0d1 $
  6. /      Creation Date:    1/20/93
  7. /      COPYRIGHT 19993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED -- RIGHTS
  8. /      RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT NOTICE IS
  9. /      PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  10. /      THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  11. /      CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  12. /      EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  13. /      RESTRICTED RIGHTS LEGEND
  14. /      Use, duplication, or disclosure by the Government is subject to restrictions as set
  15. /      forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and Computer
  16. /      Software clause at DFARS 252.227-7013. Symantec Corporation, 10201 Torre Avenue,
  17. /      Cupertino, CA 95014.
  18. /========================================================================================*/
  19.  
  20. #ifdef __cplusplus
  21.   extern "C" {
  22. #endif
  23.  
  24. /*========================================================================================
  25. /  Type definitions
  26. /========================================================================================*/
  27.  
  28. typedef short BR_Boolean;
  29.  
  30. typedef char             BR_Char;
  31. typedef unsigned short    BR_WideChar;
  32. typedef unsigned char    BR_PascalChar;
  33.  
  34. #ifdef BR_BUILD_MAC
  35. typedef char** BR_PlatformHandle;
  36. #endif
  37.  
  38. #ifdef BR_BUILD_WIN
  39. typedef unsigned BR_PlatformHandle;
  40. #endif
  41.  
  42. #ifdef BR_BUILD_MAC
  43. typedef unsigned long BR_ResourceType;
  44. #endif
  45.  
  46. #ifdef BR_BUILD_WIN
  47. typedef unsigned short BR_ResourceType;
  48. #endif
  49.  
  50. typedef unsigned short BR_ResourceId;
  51.  
  52. typedef unsigned short BR_Milliseconds;
  53.  
  54. typedef double BR_Float;
  55.  
  56.  
  57. /*========================================================================================
  58. /  Constants
  59. /========================================================================================*/
  60.  
  61. #ifndef TRUE
  62. #define TRUE 1
  63. #endif
  64.  
  65. #ifndef FALSE
  66. #define FALSE 0
  67. #endif
  68.  
  69. #ifndef NULL
  70. #define NULL 0
  71. #endif
  72.  
  73. /*========================================================================================
  74. /  Macros
  75. /========================================================================================*/
  76.  
  77. /*----------------------------------------------------------------------------------------
  78. /  NULLOBJECT
  79. /  This macros creates a NULL instance of the class 'c'. A NULL instance is an object
  80. /  whose address is NULL. This will be removed after derefernce week.
  81. /----------------------------------------------------------------------------------------*/
  82.  
  83. #define NULLOBJECT(c)       (*((c*)NULL))
  84.  
  85. /*----------------------------------------------------------------------------------------
  86. /  DUMMYRETURN
  87. /----------------------------------------------------------------------------------------*/
  88.  
  89. #define DUMMYRETURN return(TRUE);
  90.  
  91. #ifdef __cplusplus
  92.    }
  93. #endif
  94.  
  95. #endif
  96.